無情的筆記倉庫
Menu
Home
About
Tags
Archives
RSS
Sign In
怎麼檢查 object 是不是空的?
Posted by
Rich
on 2021-09-12
Edit Post
有時候會有這種需求,這次解決的幫手是:
let obj = {} if (Object.keys(obj).length === 0) //true
怕忘記,紀錄一下。
Rich
Follow
Following
Related Posts
Laptop Repair Singapore: Navigating the Maze of Technical Glitches with Expert Solutions
Anthony002
重載父類別元素 (當類別裡含有自己的類別List的時候)
Steve Chang
筆記、[NET101] 網路基礎概論 (3)
s103071049
Comments
Submit
Sign In
to join in the discussion.
Edit
Submit
Edit
Submit
Reply
Submit